package org.monster.app;

import java.util.HashMap;
import java.util.Map;

/**
 * 应用对象键值
 *
 * @author Monster
 */
public class AppObjectMap {

    /**
     * 替换键值
     */
    private static final Map<String, App> REPLACES = new HashMap<>();

    /**
     * @param key 键
     * @return 值
     */
    public static App get(String key) {
        return REPLACES.get(key);
    }

    /**
     * 放入
     *
     * @param key 键
     * @param obj 值
     */
    public synchronized void put(String key, App obj) {
        REPLACES.put(key, obj);
    }
}
